#include <stdio.h>
#include <string.h>

struct Persono
{
    char name[50];
    int age;
    float salary;
};

union Data
{
    int i;
    float f;
    char str[20];
};

int main()
{
    struct Persono person;
    strcpy(person.name, "John Doe");
    person.age = 30;
    person.salary = 50000.50;
    printf("Name: %s\n", person.name);
    printf("Age: %d\n", person.age);
    printf("Salary: %.2f\n", person.salary);

    union Data data;
    data.i = 10;
    printf("Data i: %d\n", data.i);
    data.f = 10.5;
    printf("Data f: %.2f\n", data.f);
    strcpy(data.str, "Hello");
    printf("Data str: %s\n", data.str);
    printf("Data i: %d\n", data.i);
    printf("Data f: %.2f\n", data.f);
    return 0;
}